import request from '@/utils/request'

export const loginApi = (data) => {
  return request({
    url: '/sys/login',
    method: 'POST',
    data })
}

export const getUserinfoApi = () => {
  return request({
    url: '/sys/profile',
    method: 'post'
  })
}

// 获取用户基本信息
export const getUserinfoIdApi = (id) => {
  return request({
    url: `/sys/user/${id}`,
    method: 'get'
  })
}
// export const loginApi = (data) => request.post('/sys/login', data)
